package com.atmilan.quartz.mapper;

import com.atmilan.quartz.model.entity.delloglio.DelloglioProductSku;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * Delloglio商品数据源sku Mapper 接口
 * </p>
 *
 * @author wuzp
 * @since 2021-10-14
 */
@DS("source_hiku")
public interface DelloglioProductSkuMapper extends BaseMapper<DelloglioProductSku> {

    @Update("truncate table delloglio_product_sku")
    void deleteAll();

    @Update("truncate table delloglio_product_sku_back")
    void deleteProductSkuBack();

    @Update("insert into delloglio_product_sku_back select * from delloglio_product_sku")
    void copyProductSkuBack();

}
